package com.bing.habit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bing.habit.entity.TomatoRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TomatoRecordDAO extends BaseMapper<TomatoRecord> {


    List<TomatoRecord> findAllByUid(@Param("uid") int uid);

    //查找本周、日 一 二 三 四 五 六
    List<TomatoRecord> listWeek(@Param("uid") int uid);

    //查询某一天
    List<TomatoRecord> listDay(@Param("uid") int uid,@Param("date") String date);

}
